import xadmin
from . import models
#为Xadmin注册表，便于admin后台查看
xadmin.site.register(models.Banner)
# Register your models here.

# xadmin主页相关配置，可以写在任意一个xadmin中
from xadmin import views
#全局配置
class GlobalSettings(object):
    """xadmin的全局配置"""
    site_title = "JOJO"  # 设置站点标题
    site_footer = "gold wind"  # 设置站点的页脚
    menu_style = "accordion"  # 设置菜单折叠
xadmin.site.register(views.CommAdminView, GlobalSettings)